<%@page import="board.BoardMyba"%>
<%@page import="board.BoardVo"%>
<%@page import="board.Board"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>rep_register.jsp</title>
<script>

function getId(id){return document.getElementById(id);}
function init(){
	getId('btnRepResult').onclick=function(){		
		rep_form.action='index2.jsp?inc_content=./mybatis_board/rep_register_result.jsp';
		rep_form.submit();		
	};	
}
function btList(){
	location.href="index2.jsp?inc_content=./mybatis_board/list.jsp";
}
</script>
</head>
<body>
<jsp:useBean id="vo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="vo"/>
<%
vo.getPart("공지사항");
BoardMyba board = new BoardMyba();
board.setBoardvo(vo);
BoardVo bv = board.view();
%>

<form name="rep_form" method="post" action="index2.jsp?inc_content=./board/rep_register_result.jsp" enctype="multipart/form-data">
			시리얼 : <%=bv.getSerial()%><br/>
			아이디 : <input type="text" name="mid" ><br/>
			암&emsp;호 : <input type="text" name="pwd"><br/>
			제&emsp;목 : <input type="text" name="subject" ><br/>
			내&emsp;용 : <textarea rows="5" cols="30" name="content"></textarea><br/>
			파&emsp;일 : <input type="file" name="filename"><br/>
			
			조회수 : <%=bv.getHit()%><br/><br/>
			<input type="submit" value="저장">
			<input type="hidden" value="<%=bv.getGrp() %>" name="grp">
			<input type="hidden" value="<%=bv.getDeep() %>" name="deep">
			<input type="button" value="목록" onclick='btList()'>
			<input type='hidden' name='part' value="<%=(String)session.getAttribute("part") %>">
		</form>
</body>
</html>